<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta name="copyright" content="http://www.appcms.org" />
<link rel="stylesheet" href="skin/base.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/zy_control.js"></script>
<script src="js/zy_click.js"></script>
<script src="js/config.js"></script>
<script src="js/common.js"></script>
</head>
<body ontouchstart>
<div id="main" class="box-ver box">
  <div id="header">
    <header><script>setHead('default',l_common['head_txt_special']);</script></header>
    <div class="stab" id="filter"></div>
  </div>
  <div id="content" class="loading"></div>
</div>
</body>
<script>
    	zy_init();
		var cid=-1;
		localStorage['news_class']=localStorage['news_class']?localStorage['news_class']:6;
		localStorage['news_class_text']=localStorage['news_class_text']?localStorage['news_class_text']:'所有资讯';
		
		var s=window.getComputedStyle($$('content'),null),y=int($$("header").offsetHeight);
		var w=int(s.width),h=int(s.height),f=int(s.fontSize);
        window.uexOnload = function(type){
            if (!type){
				uexWindow.openPopover("content","0","news_content.html","",0,y,w,h,f,"0");
				window.setTimeout(function(){
					uexWindow.setPopoverFrame('content',0,$$("header").offsetHeight,"",$$("content").offsetHeight);
				},1000)
				uexWindow.bringPopoverToFront('content');
				uexWindow.onStateChange=function(state){				
					if(state==0){//转前台的时候
						if (cid != localStorage['news_class']) {//上次的cid不等于这次的点击news_class
							setFilter();
						}			
					}					
				}
            }
        }
		function openage(url){
			var winname=url=='index'?'root':url;
			uexWindow.open(winname, '0', url+'.html', 0, '', '', 0);
		}
		function filter(id){
			
			var divs=$$('toptype').getElementsByTagName("div");
			for(var i=0;i<divs.length;i++)
			{
				 if(divs[i].id !=id)
				 {
				 	$$(divs[i].id).className='';
				 }else{
				 	$$(divs[i].id).className='cur';
				 }
			}
			
			uexWindow.openPopover("content","0",id+"_content.html","",0,y,w,h,f,"0");
		}
		function setFilter(){//设置顶部
			uexWindow.setPopoverFrame('filter',0,1000000,"","");
			uexWindow.bringPopoverToFront('content');
			$$('class').className=localStorage['news_class']>0?'focus':'';
			$$('class').innerHTML=localStorage['news_class_text']+'<em></em>';
	
			var fun='getMain(-1);';
			if(localStorage['news_class']==0&&localStorage['news_area']==0&&localStorage['news_order']==0){
				fun+='$$("img").className="success";';
							
			}else{
				fun+='$$("img").className="";';
			}
			if(cid>-1){
				uexWindow.evaluatePopoverScript("","content",fun);
			}
			cid=localStorage['news_class'];
		}
    </script>
</html>